package com.soup.lab;

import com.soup.lab.config.LifeCycleConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.LiveBeansView;

import javax.management.MBeanServer;
import java.lang.management.ManagementFactory;
import java.util.concurrent.TimeUnit;

@SpringBootApplication
public class MainApplication {

    public static void main(String[] args) throws InterruptedException {
        ConfigurableApplicationContext context = SpringApplication.run(MainApplication.class, args);
        LifeCycleConfiguration.D bean = context.getBean(LifeCycleConfiguration.D.class);
        System.out.println(bean.getList());
    }

}
